<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>11-数组</title>

</head>
<body>
<!--

数组
    查询手册完成:
        1. 创建数组


       2. 数组常用方法

-->


    <script>


    let array2 = ['a','b','c',100]
    console.log("长度:" + array2.length);  //4

    array2[5] = true
    console.log("长度2:" + array2.length); // 6

    for(let element of array2){
        console.log(element); // a,b,c,100,undefined,true
    }
</script>

</body>
</html>